
chatSessionManage = {};

chatSessionManage._path = '/action/chatSessionManage';

/**
 * @param {class com.gjs.freechat.server.component.bean.Conversation} p0 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.addNewConvo = function(conv, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'addNewConvo', arguments, true);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.addUnreadMessage = function(sessionId, userId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'addUnreadMessage', arguments, false);
};

/**
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.getAllConvos = function(callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'getAllConvos', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.stopMatch = function(userId, convoId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'stopMatch', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.startMatch = function(userId, convoId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'startMatch', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {class java.lang.String} p2 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.addFriend = function(convoId, userId, partnerId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'addFriend', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {class java.lang.String} p2 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.removeConvo = function(convoId, userId, partnerId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'removeConvo', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {class java.lang.String} p2 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.rejectFriend = function(convoId, userId, partnerId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'rejectFriend', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {class java.lang.String} p2 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.acceptFriend = function(convoId, userId, partnerId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'acceptFriend', arguments, false);
};

/**
 * @param {class java.awt.image.BufferedImage} p0 a param
 * @param {class com.gjs.freechat.server.component.bean.Message} p1 a param
 * @param {int} p2 a param
 * @param {int} p3 a param
 * @param {int} p4 a param
 * @param {int} p5 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.sendImage = function(p0, p1, p2, p3, p4, p5, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'sendImage', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.clearUnreadMessages = function(sessionId, userId, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'clearUnreadMessages', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {class java.lang.String} p2 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.updateFriendNickName = function(convoId, userId, name, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'updateFriendNickName', arguments, false);
};

/**
 * @param {class java.lang.String} p0 a param
 * @param {class java.lang.String} p1 a param
 * @param {function|Object} callback callback function or options object
 */
chatSessionManage.searchAddByUsername = function(userId, username, callback) {
  return ajaxUtils.requestExecute(chatSessionManage._path, 'searchAddByUsername', arguments, false);
};


